package com.tc.dispatch.web.rwservice;

/**
 * <p>Title: tcweb</p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2007</p>
 * <p>Company: zju</p>
 * @author  jackyjia
 * @version 1.0
 */


import java.util.*;
import java.text.*;
import javax.ejb.*;
import javax.servlet.*;
import javax.servlet.http.*;


import com.tc.dispatch.rwservice.ejb.*;

import com.tc.dispatch.web.util.*;

import com.tc.dispatch.web.exception.*;
import javax.naming.InitialContext;
import javax.naming.Context;
import javax.naming.*;


public class rwHelper {

  public static RWServiceLocal getRWServiceLocal() {
     ServiceLocator sl = ServiceLocator.getInstance();
     try {
       return ( (RWServiceLocalHome) sl.getEJBLocalHome(JNDINames.RWService_EJB_LOCAL
           )).create();
     }
     catch (CreateException ce) {
       throw new WEBSysException("CreateException found.", ce);
     }
   }

}